package com.kl.forum.service;

import com.kl.forum.dao.AdListMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AdListService {
    @Autowired
    private AdListMapper adListMapper;

    public List<Map> findAdvertisement(){
       return adListMapper.findAdvertisement();
    }

    public List<Map> findAdByType(int type) {
        return adListMapper.findAdByType(type);
    }
}
